{% extends "base.html" %}
{% block title %} {{tag}} - {{blog.title}} {% endblock %}

{%block content%}
	<div class="title">
		<h2> ☞ <a href="/tag/{{t.tag|urlencode}}" rel="bookmark" title="Permanent Link to {{tag}}">{{tag.tag}}</a>Related Articles</h2>
	</div>
	
	{%for entry in entries%}
		<div class="post" id="post-{{ entry.post_id }}">
			<div class="date">
				<span>{{entry.date|date:"M"}}</span>
				{{entry.date|date:"d"}}
			</div>
			<div class="title">
				<h2>
					<a href="/{{entry.link}}" rel="bookmark" title = "{{entry.title}}">{{entry.title}}</a>
				</h2>
				<div class="postdata">
					<span class="category">
						{%for tag in entry.tags%} <a href="/tag/{{tag|urlencode}}" rel="tag">{{tag}}</a> {%endfor%}
					</span>
					<span class="comments">
						<a href="/{{entry.link}}#comments">({{entry.commentcount}})</a>
						{%if self.is_admin%} | <a href="{{entry.edit_url}}" class="alert">Edit</a>
						{%endif%}
					</span>
				</div>
				
			</div>
			
		</div>
		
	{%endfor%}
{%endblock%}